package emulator.shell.GUI.symbols;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.TableModel;

import emulator.shell.GUI.util.DialogBase;

@SuppressWarnings("serial")
public class DeleteSymbolsDialog extends DialogBase
{
	public DeleteSymbolsDialog(JFrame owner, TableModel tableModel)
	{
		super(owner, "Delete symbols", true);
		buildContents(tableModel);
		pack();
		setLocationRelativeTo(null);
	}

	private void buildContents(TableModel tableModel)
	{
		getContentPane().setLayout(new BorderLayout());

		JTable sourceTable = new JTable();
		sourceTable.setAutoCreateRowSorter(true);
		sourceTable.setModel(tableModel);

		add(new JScrollPane(sourceTable), BorderLayout.CENTER);
		add(createButtonPanel(), BorderLayout.SOUTH);
	}
}

